package com.example.lj.uav.view;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.example.lj.uav.R;
import com.example.lj.uav.view.base.BaseActivity;

public class ContentActivity extends BaseActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_content);

        findViewById(R.id.content_fl_back).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        
        String flag = getFlag();
        ((TextView) findViewById(R.id.content_tv_title)).setText(flag);
        if (flag.equals("联系我们")) {
            ((TextView) findViewById(R.id.content_tv_content)).setText(getResources().getString(R.string.contact_us));
        } else if (flag.equals("用户协议")) {
            ((TextView) findViewById(R.id.content_tv_content)).setText(getResources().getString(R.string.user_agreement_content));
        } else if (flag.equals("隐私条款")) {
            ((TextView) findViewById(R.id.content_tv_content)).setText(getResources().getString(R.string.user_privacy_policy_content));
        }
    }
}
